using System;
using System.Collections.Generic;
using System.Linq;
using Volo.Abp.Domain.Entities;

namespace JobToDdd.Domain.JobInfo
{
    public class City : Entity<int>
    {
        public string CityName { get; set; }
        public int? AdministrativeLevel { get; set; }

        public List<string> GetCityName(IEnumerable<City> cities)
        {
            if (cities == null)
            {
                throw new Exception("cities不能为空");
            }
            return cities.Select(m => m.CityName).ToList();
        }
    }
}